const defaultWebsites = [{
  type: '搜索引擎',
  url: 'https://www.bing.com/search?q={0}',
  title: '必应',
}, {
  type: '搜索引擎',
  url: 'https://www.baidu.com/s?wd={0}',
  title: '百度',
}, {
  type: '搜索引擎',
  url: 'https://www.zhihu.com/search?q={0}',
  title: '知乎',
}, {
  type: '搜索引擎',
  url: 'https://www.google.com.hk/search?q={0}',
  title: '谷歌',
}, {
  type: '企业查询',
  url: 'https://www.tianyancha.com/search?key={0}',
  title: '天眼查',
}, {
  type: '企业查询',
  url: 'https://www.qcc.com/web/search?key={0}',
  title: '企查查',
}];

export async function fetchWebsites() {
  const response = await fetch('https://gitee.com/qianyucc/batch-search/raw/master/websites.json');
  const data = await response.json();
  return data;
}

export function getWebsites() {
  return defaultWebsites;
}

